//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <list>
using namespace std;

//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TSplitter *Splitter1;
        TButton *Button1;
        TPopupMenu *PopupMenu1;
        TMenuItem *N1;
        TLabel *Label1;
        TButton *Button3;
        TButton *Button4;
        TPanel *Panel2;
        TShape *Shape1;
        TButton *Button2;

        void __fastcall Button1Click(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall Panel2MouseMove(TObject *Sender, TShiftState Shift,
          int X, int Y);
        void __fastcall Panel2MouseUp(TObject *Sender, TMouseButton Button,
          TShiftState Shift, int X, int Y);
        void __fastcall N1Click(TObject *Sender);
        void __fastcall Button2MouseDown(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
        void __fastcall Button2ContextPopup(TObject *Sender,
          TPoint &MousePos, bool &Handled);
        void __fastcall Button2MouseUp(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
        void __fastcall Button2MouseMove(TObject *Sender,
          TShiftState Shift, int X, int Y);
        void __fastcall PopupMenu1Popup(TObject *Sender);
        void __fastcall Button3Click(TObject *Sender);
        void __fastcall Button4Click(TObject *Sender);
private:	// User declarations
public:		// User declarations
        TButton *b1 ;
        TEdit *e1 ;
        TLabel *l1 ;
        int     iObject;
        TObject *cObject;
        //TButton *bObject;
        TWinControl *bObject;
        list <TObject *> listObj;
        int     cX,cY;
        int     ModeEditObject;
        enum    eModeEditObject {cDefault=0,cMove=1,cResize=2};
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
